//
// Created by Tiany on 2021/6/21.
//

#ifndef SHUJUJIEGOU_SEQSTRING_H
#define SHUJUJIEGOU_SEQSTRING_H

//顺序存储方式的字符串
struct SeqString{
    int MAXNUM;
    int n;
    char *c;
};
typedef struct SeqString *PSeqString;

//创建空顺序串
PSeqString createNullStr_seq(int m);

//求字符串的子串
PSeqString subStr_seq(PSeqString pSeqString,int i,int j);

//将字符串写入顺序表
void writeStr_seq(PSeqString pSeqString,char s[],int length);

//获取字符长度
int getLength(char s[]);

//读取并打印顺序表
void readString_seq(PSeqString pSeqString);

#endif //SHUJUJIEGOU_SEQSTRING_H
